<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Site/yongjin')}>">系统设置</a></li>
      	<li class="active">佣金设置</li>
    </ol>


	<form id="ajaxForm" action="<{:U('Site/insert')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label">分销层级</label>
			<div class="col-md-3">
		    	<input type="text"
				name="level_num"
				id="level_num"
				data-rule-required="true"
				data-rule-number="true"
				class="form-control"
				value="<{:C('level_num')}>"
				/>
				<p>最高只能是三级</p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">一级分销佣金</label>
			<div class="col-md-3">
				<div class="input-group">
			    	<input type="text"
					name="level_1"
					id="level_1"
					data-rule-required="true"
					data-rule-number="true"
					class="form-control"
					value="<{:C('level_1')}>"
					/>
			      	<div class="input-group-addon">元</div>
			    </div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">二级分销佣金</label>
			<div class="col-md-3">
				<div class="input-group">
			    	<input type="text"
					name="level_2"
					id="level_2"
					data-rule-required="true"
					data-rule-number="true"
					class="form-control"
					value="<{:C('level_2')}>"
					/>
			      	<div class="input-group-addon">元</div>
			    </div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">三级分销佣金</label>
			<div class="col-md-3">
				<div class="input-group">
			    	<input type="text"
					name="level_3"
					id="level_3"
					data-rule-required="true"
					data-rule-number="true"
					class="form-control"
					value="<{:C('level_3')}>"
					/>
			      	<div class="input-group-addon">元</div>
			    </div>
			</div>
		</div>		

		<hr>

		<div class="form-group">
			<label class="col-md-1 control-label">消费后成为分销</label>
			<div class="col-md-11">

		    	<label class="radio-inline">		
					<input name="must_buy" type="radio" value="1" <php>if(C('must_buy')=='1')echo checked;</php>/>必须消费
				</label>
				<label class="radio-inline">		
					<input name="must_buy" type="radio" value="0" <php>if(C('must_buy')=='0')echo checked;</php>/>无需消费
				</label>

			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_exts">最小提现金额</label>
			<div class="col-md-3">
				<div class="input-group">
			    	<input type="text"
					name="tx_min"
					id="tx_min"
					data-rule-required="true"
					data-rule-number="true"
					class="form-control"
					value="<{:C('tx_min')}>"
					/>
			      	<div class="input-group-addon">元</div>
			    </div>
			</div>
		</div>	

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_exts">首次注册赠送</label>
			<div class="col-md-3">
				<div class="input-group">
			    	<input type="text"
					name="first_money"
					id="first_money"
					data-rule-required="true"
					data-rule-number="true"
					class="form-control"
					value="<{:C('first_money')}>"
					/>
			      	<div class="input-group-addon">元</div>
			    </div>
			</div>
		</div>	

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_size">佣金系统</label>
			<div class="col-md-3">
				<label class="checkbox-inline">
				<input type="checkbox" name="yontjin_open" id="yontjin_open" value="1" <?php if(C('yontjin_open')){echo 'checked';}?> /> 启用
				</label>
			</div>
		</div>	
	
		<div class="form-group">
			<div class="col-md-5 col-md-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> 保存佣金设置</button>
			</div>
		</div>
		<input type="hidden" name="files" value="yongjin.php" />
	</form>
</div>

<input type="hidden" id="menu_action" value="yongjin" />